# Maintainer: Alexander F Rødseth <xyproto@archlinux.org>
# Contributor: Judd Vinet <jvinet@zeroflux.org>

pkgname=acpi
pkgver=1.7
pkgrel=3
pkgdesc='Client for battery, power, and thermal readings'
arch=('loong64' 'x86_64')
url='https://sourceforge.net/projects/acpiclient/files/acpiclient/'
license=('GPL2')
depends=('glibc')
source=("https://downloads.sourceforge.net/acpiclient/$pkgname-$pkgver.tar.gz")
sha256sums=('d7a504b61c716ae5b7e81a0c67a50a51f06c7326f197b66a4b823de076a35005')

build() {
  cd "$pkgname-$pkgver"

  ./configure --prefix=/usr
  make
}

package() {
  make -C "$pkgname-$pkgver" DESTDIR"=$pkgdir" install
}

# vim:ts=2 sw=2 et:
